package com.lmxdawn.api.admin.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author huangyubin
 * @since 2024-07-04
 */
@TableName("t_md")
public class Md implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 拍卖方式
     */
    private String auction;

    /**
     * 游戏区服
     */
    private String gameServer;

    /**
     * 销售价
     */
    private String price;

    /**
     * 手续费
     */
    private String charge;

    /**
     * 数量
     */
    private String amount;

    private String quantity;

    /**
     * 平台
     */
    private String platform;


    private String remark;

    private String unit;

    // 1、自营 2、代理
    // 3、商城回收的价格维护
    // 4、出售给商城 卖金币给商城
    // 11 12 特价 500-5000 回收出售 平台标注的回收和出售价格的金币
    // 13 14 5000+ 回收出售 平台标注的回收和出售的价格
    // 15  用户出售的类型
    private Integer type;
    private Date createTime;

    private String createBy;

    private String saleUser;

    private String validHour;

    private String onlineTime;
    private String contact;

    // 0下架 1上架 2删除
    private String status;

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getValidHour() {
        return validHour;
    }

    public void setValidHour(String validHour) {
        this.validHour = validHour;
    }

    public String getOnlineTime() {
        return onlineTime;
    }

    public void setOnlineTime(String onlineTime) {
        this.onlineTime = onlineTime;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getSaleUser() {
        return saleUser;
    }

    public void setSaleUser(String saleUser) {
        this.saleUser = saleUser;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAuction() {
        return auction;
    }

    public void setAuction(String auction) {
        this.auction = auction;
    }

    public String getGameServer() {
        return gameServer;
    }

    public void setGameServer(String gameServer) {
        this.gameServer = gameServer;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCharge() {
        return charge;
    }

    public void setCharge(String charg) {
        this.charge = charg;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public String toString() {
        return "GoldCoin{" +
        "id = " + id +
        ", auction = " + auction +
        ", gameServer = " + gameServer +
        ", price = " + price +
        ", charge = " + charge +
        ", amount = " + amount +
        ", platform = " + platform +
        ", createTime = " + createTime +
        ", createBy = " + createBy +
        "}";
    }
}
